#include "mylabel.h"
#include <QDebug>
#include <QMouseEvent>
mylabel::mylabel(QWidget* parent):QLabel(parent)
{

}
void mylabel::mousePressEvent(QMouseEvent *ev)
{
    qDebug()<<ev->x()<<' '<<ev->y()<<endl;
    qDebug()<<ev->pos()<<endl;
    qDebug()<<ev->globalX()<<' '<<ev->globalY();
}

